package com.mapapp.flutter_mapapp.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mapapp.flutter_mapapp.R;
import com.mapapp.flutter_mapapp.bean.TaskItem;

import java.util.List;

public class NewTaskAdapter extends BaseQuickAdapter<TaskItem, BaseViewHolder> {


    public NewTaskAdapter(int layoutResId, @Nullable List<TaskItem> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, TaskItem item) {
        helper.setText(R.id.tv_task, item.getTaskName());
    }
}
